package systemModels

import "baize/app/baize"

type SysNoticeVo struct {
	Id         int64       `json:"id,string" db:"id"`                   //通知ID
	Title      string      `json:"title" db:"title" binding:"required"` //通知标题
	Txt        string      `json:"txt" db:"txt" binding:"required"`     //通知文本
	DeptId     int64       `json:"deptId" db:"dept_id"`                 //部门ID
	DeptIds    *baize.List `json:"DeptIds" db:"dept_ids"`               //接收部门列表
	CreateName string      `json:"createName" db:"create_name"`         //创建人
	baize.BaseEntity
}

type NoticeDQL struct {
	TimeRangeStart string `form:"timeRangeStart" db:"time_start"` // 时间范围开始
	TimeRangeEnd   string `form:"timeRangeEnd" db:"time_end"`     // 时间范围结束
	Title          string `form:"title" db:"title"`
	baize.BaseEntityDQL
}

type NoticeUser struct {
	NoticeId int64  `db:"notice_id,string"` //通知ID
	UserId   int64  `db:"user_id"`
	Status   string `db:"status"` //通知状态  1未读 2 已读
}
type ConsumptionNoticeDQL struct {
	Unread string `form:"unread" db:"status"` //未读消息1 已读2 全部不填
	Title  string `form:"title" db:"title"`
	UserId int64  `db:"user_id"  swaggerignore:"true"`
	baize.BaseEntityDQL
}

type ConsumptionNoticeVo struct {
	Id         int64       `json:"id,string" db:"id"`                                 //通知ID
	Title      string      `json:"title" db:"title" `                                 //通知标题
	Txt        string      `json:"txt" db:"txt" `                                     //通知文本
	Status     string      `json:"status"db:"status"`                                 //通知状态 1未读 2 已读
	CreateTime *baize.Time `json:"createTime" db:"create_time" swaggertype:"integer"` //创建时间
}
